docs: fix parameter name mismatches
authorMatthias Clasen <mclasen@redhat.com>
Tue, 7 Jun 2011 23:30:51 +0000 (19:30 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 7 Jun 2011 23:30:51 +0000 (19:30 -0400)
gtk/gtkcontainer.c
gtk/gtkcontainer.h

index fc27dd11ee1523db2e64963a55c98f06d12ab2dd..66e7a0c21d6fd45fc9dd3143f6b03c2a35064e1d 100644 (file)
@@ -769,8 +769,8 @@ gtk_container_child_type (GtkContainer *container)
 /**
  * gtk_container_child_notify:
  * @container: the #GtkContainer
- * @widget: the child widget
- * @child_property: the name of a chld property installed on
+ * @child: the child widget
+ * @child_property: the name of a child property installed on
  *     the class of @container
  *
  * Emits a #GtkWidget::child-notify signal for the
@@ -785,17 +785,17 @@ gtk_container_child_type (GtkContainer *container)
  */
 void
 gtk_container_child_notify (GtkContainer *container,
-                            GtkWidget    *widget,
+                            GtkWidget    *child,
                             const gchar  *child_property)
 {
   GObject *obj;
   GParamSpec *pspec;
 
   g_return_if_fail (GTK_IS_CONTAINER (container));
-  g_return_if_fail (GTK_IS_WIDGET (widget));
+  g_return_if_fail (GTK_IS_WIDGET (child));
   g_return_if_fail (child_property != NULL);
 
-  obj = G_OBJECT (widget);
+  obj = G_OBJECT (child);
 
   if (obj->ref_count == 0)
     return;
index afd2acea1901f3bccae2de75b22095557d9a68ab..082b41edb1b391b59f6e14f6c37efae66f72fb20 100644 (file)
@@ -199,7 +199,7 @@ void             gtk_container_child_get_property           (GtkContainer      *container,
 
 void gtk_container_child_notify (GtkContainer *container,
                                  GtkWidget    *child,
-                                 const gchar  *property_name);
+                                 const gchar  *child_property);
 
 /**
  * GTK_CONTAINER_WARN_INVALID_CHILD_PROPERTY_ID: